<%@ page import="com.app.ywms.rk.xhqrd.Yxhqrd" %>

<g:hiddenField name="id" value="${yxhqrdInstance?.id}" />
<g:hiddenField name="version" value="${yxhqrdInstance?.version}" />
<g:hiddenField name="businessType.id" value="${yxhqrdInstance?.businessType?.id}"/>
<g:hiddenField name="billTypeCode" value="YXHQRD" ></g:hiddenField>
<g:hiddenField name="sourceBid" value="${yxhqrdInstance?.sourceBid}" ></g:hiddenField>
<g:hiddenField name="sourceHid" value="${yxhqrdInstance?.sourceHid}" ></g:hiddenField>
<g:hiddenField name="sourceBillCode" value="${yxhqrdInstance?.sourceBillCode}" ></g:hiddenField>
<g:hiddenField name="sourceBillType.id" value="${yxhqrdInstance?.sourceBillType.id}" ></g:hiddenField>
<g:hiddenField name="sourceBillTypeCode" value="${yxhqrdInstance?.sourceBillTypeCode}" ></g:hiddenField>


<p>客户航次基本信息</p>
<hr>

    <span  class="fieldcontain  ">
        <label for="businessType">
            <g:message code="yxhqrd.businessType.label" default="Tsjc" />

        </label>
        <input  id="businessType"  class="myui" value="${yxhqrdInstance?.businessType.name}" readonly="" />

    </span>
    <span  class="fieldcontain  ">
        <label for="billno">
            <g:message code="yxhqrd.billNo.label" default="billno" />

        </label>
        <input id="billno" name="billno" class="myui" value="${yxhqrdInstance?.billno}" readonly=""/>

    </span>
    <span   class="fieldcontain  ">
        <label for="billdate">
            <g:message code="yxhqrd.billdate.label" default="billdate" />

        </label>
        <input name="billdate" id="billdate" class="easyui-datebox" value="${yxhqrdInstance?.billdate.getTime()}"  date/>

    </span>

    <span id="divtsjc${pageId}" class="fieldcontain  ">
        <label for="tsjc">
            <g:message code="yxhqrd.tsjc.label" default="Tsjc" />

        </label>
        <g:checkBox class="checkbox" name="tsjc" value="${yxhqrdInstance?.tsjc}" />

    </span>

    <span id="divzgzf${pageId}" class="fieldcontain  ">
        <label for="zgzf">
            <g:message code="yxhqrd.zgzf.label" default="Zgzf" />

        </label>
        <g:checkBox class="checkbox" name="zgzf" value="${yxhqrdInstance?.zgzf}" />

    </span>

    <span id="divbs${pageId}" class="fieldcontain  ">
        <label for="bs">
            <g:message code="yxhqrd.bs.label" default="Bs" />

        </label>
        <g:checkBox class="checkbox" name="bs" value="${yxhqrdInstance?.bs}" />

    </span>

    <span id="divship${pageId}" class="fieldcontain  ">
        <label for="ship${pageId}">
            <g:message code="yxhqrd.ship.label" default="Ship" />

        </label>
        <g:refTemplate code="refYshipdoc" model="[id:'ship',name:'ship.id',value:yxhqrdInstance?.ship?.id]"></g:refTemplate>

    </span>

    <span id="divhc${pageId}" class="fieldcontain  ">
        <label for="hc">
            <g:message code="yxhqrd.hc.label" default="Hc" />

        </label>
        <g:textField class="easyui-validatebox myui" name="hc" value="${yxhqrdInstance?.hc}"/>

    </span>

    <span id="divdgsj${pageId}" class="fieldcontain  ">
        <label for="dgsj">
            <g:message code="yxhqrd.dgsj.label" default="Dgsj" />

        </label>
        <input id="dgsj" name="dgsj" class="easyui-datebox" date value="${yxhqrdInstance?.dgsj?.getTime()}"/>

    </span>
    <span id="divbdCumandoc${pageId}" class="fieldcontain  ">
        <label for="bdCumandoc${pageId}">
            <g:message code="yxhqrd.bdCumandoc.label" default="Bd Cumandoc" />

        </label>
        <g:refTemplate code="refBdCustomer" model="[id:'bdCumandoc',name: 'bdCumandoc.id',value:yxhqrdInstance?.bdCumandoc?.id]"></g:refTemplate>

    </span>

    <span id="divjgrq${pageId}" class="fieldcontain  ">
        <label for="jgrq">
            <g:message code="yxhqrd.jgrq.label" default="Jgrq" />

        </label>
        <input id="jgrq" name="jgrq" class="easyui-datebox" date value="${yxhqrdInstance?.jgrq?.getTime()}"/>

    </span>

    <span id="divbdInvmandoc${pageId}" class="fieldcontain  ">
        <label for="bdInvmandoc${pageId}">
            <g:message code="yxhqrd.bdInvmandoc.label" default="Bd Invmandoc" />

        </label>
        <g:refTemplate code="refBdInvmandoc" model="[id:'bdInvmandoc',name: 'bdInvmandoc.id',value:yxhqrdInstance?.bdInvmandoc?.id]"></g:refTemplate>

    </span>
    <span id="divmyxz${pageId}" class="fieldcontain  ">
        <label for="myxz">
            <g:message code="yxhqrd.myxz.label" default="Myxz" />

        </label>
        <g:select name="myxz" from="${[[index:0,value:'内贸'],[index:1,value:'外贸']]}" optionKey="index" optionValue="value" value="${yxhqrdInstance?.myxz}"></g:select>

    </span>

    <span id="divcontract${pageId}" class="fieldcontain  ">
        <label for="contract${pageId}">
            <g:message code="yxhqrd.contract.label" default="Contract" />

        </label>
        <g:refTemplate code="refYContract" model="[id:'contract',name:'contract.id',value:yxhqrdInstance?.contract?.id]"></g:refTemplate>

    </span>

    <span id="divhtpch${pageId}" class="fieldcontain  ">
        <label for="htpch">
            <g:message code="yxhqrd.htpch.label" default="Htpch" />

        </label>
        <g:textField class="easyui-validatebox myui" name="htpch" value="${yxhqrdInstance?.htpch}"/>
    </span>
    <span id="divcgsl${pageId}" class="fieldcontain  ">
        <label for="cgsl">
            <g:message code="yxhqrd.cgsl.label" default="Cgsl" />

        </label>
        <input id="cgsl" name="cgsl" value="${yxhqrdInstance?.cgsl}" class="easyui-numberbox myui"/>

    </span>

    <span id="divcddw${pageId}" class="fieldcontain  ">
        <label for="cddw${pageId}">
            <g:message code="yxhqrd.cddw.label" default="Cddw" />

        </label>
        <g:refTemplate code="refBdCustomer" model="[id:'cddw',name:'cddw.id',value:yxhqrdInstance?.cddw?.id]"></g:refTemplate>

    </span>

    <span id="divhgfx${pageId}" class="fieldcontain  ">
        <label for="hgfx">
            <g:message code="yxhqrd.hgfx.label" default="Hgfx" />

        </label>
        <g:select name="hgfx" from="${[[index:0,value:'未放行'],[index:1,value:'已放行']]}" optionKey="index" optionValue="value" value="${yxhqrdInstance?.hgfx}"></g:select>

    </span>
    <span id="divfxsl${pageId}" class="fieldcontain  ">
        <label for="fxsl">
            <g:message code="yxhqrd.fxsl.label" default="Fxsl" />

        </label>
        <input name="fxsl" id="fxsl" value="${yxhqrdInstance?.fxsl}" class="easyui-numberbox myui"/>

    </span>

    <span id="divkzdw${pageId}" class="fieldcontain  ">
        <label for="kzdw${pageId}">
            <g:message code="yxhqrd.kzdw.label" default="Kzdw" />

        </label>
        <g:refTemplate code="refBdCustomer" model="[id:'kzdw',name:'kzdw.id',value:yxhqrdInstance?.kzdw?.id]"></g:refTemplate>

    </span>

    <span id="divkzfx${pageId}" class="fieldcontain  ">
        <label for="kzfx">
            <g:message code="yxhqrd.kzfx.label" default="Kzfx" />

        </label>
        <g:select name="kzfx" from="${[[index:0,value:'未放行'],[index:1,value:'已放行']]}" optionKey="index" optionValue="value" value="${yxhqrdInstance?.kzfx}"></g:select>

    </span>
    <span id="divkzfxsl${pageId}" class="fieldcontain  ">
        <label for="kzfxsl">
            <g:message code="yxhqrd.kzfxsl.label" default="Kzfxsl" />

        </label>
        <input id="kzfxsl" name="kzfxsl" value="${yxhqrdInstance?.kzfxsl}" class="easyui-numberbox myui"/>

    </span>




<p>客户数量确认</p>
<hr>
<span id="divxdtsl${pageId}" class="fieldcontain  ">
    <label for="xdtsl">
        <g:message code="yxhqrd.xdtsl.label" default="Xdtsl" />

    </label>

    <input id="xdtsl" name="xdtsl" value="${ yxhqrdInstance?.xdtsl}" class="easyui-numberbox myui">
</span>

<span id="divgjsl${pageId}" class="fieldcontain  ">
    <label for="gjsl">
        <g:message code="yxhqrd.gjsl.label" default="Gjsl" />

    </label>

    <input id="gjsl" name="gjsl" value="${ yxhqrdInstance?.gjsl}" class="easyui-numberbox myui">
</span>

<span id="divcjsl${pageId}" class="fieldcontain  ">
    <label for="cjsl">
        <g:message code="yxhqrd.cjsl.label" default="Cjsl" />

    </label>
    <input id="cjsl" name="cjsl" value="${ yxhqrdInstance?.cjsl}" class="easyui-numberbox myui">

</span>
<span id="divsjsl${pageId}" class="fieldcontain  ">
    <label for="sjsl">
        <g:message code="yxhqrd.sjsl.label" default="Sjsl" />

    </label>
    <input id="sjsl" name="sjsl" value="${fieldValue(bean: yxhqrdInstance, field: 'sjsl')}" class="easyui-numberbox myui" required="true"/>

</span>

<span id="divhtsh${pageId}" class="fieldcontain  ">
    <label for="htsh">
        <g:message code="yxhqrd.htsh.label" default="Htsh" />

    </label>
    <input id="htsh" name="htsh" value="${yxhqrdInstance?.htsh}" class="easyui-numberbox myui" />

</span>

<span id="divzcfhl${pageId}" class="fieldcontain  ">
    <label for="zcfhl">
        <g:message code="yxhqrd.zcfhl.label" default="Zcfhl" />

    </label>
    <input id="zcfhl" name="zcfhl" value="${ yxhqrdInstance?.zcfhl}" class="easyui-numberbox myui"/>

</span>
<span id="divbgsh${pageId}" class="fieldcontain  ">
    <label for="bgsh">
        <g:message code="yxhqrd.bgsh.label" default="Bgsh" />

    </label>
    <input id="bgsh" name="bgsh" value="${yxhqrdInstance?.bgsh}" class="easyui-numberbox myui"/>

</span>

<span id="divzdfhl${pageId}" class="fieldcontain  ">
    <label for="zdfhl">
        <g:message code="yxhqrd.zdfhl.label" default="Zdfhl" />

    </label>
    <input id="zdfhl" name="zdfhl" value="${ yxhqrdInstance?.zdfhl}" class="easyui-numberbox myui"/>

</span>

<span id="divsjdw${pageId}" class="fieldcontain  ">
    <label for="sjdw${pageId}">
        <g:message code="yxhqrd.sjdw.label" default="Sjdw" />

    </label>
    <g:refTemplate code="refBdCustomer" model="[id:'sjdw',name:'sjdw.id',value:yxhqrdInstance?.sjdw?.id]"></g:refTemplate>

</span>
<span id="divsjzsh${pageId}" class="fieldcontain  ">
    <label for="sjzsh">
        <g:message code="yxhqrd.sjzsh.label" default="Sjzsh" />

    </label>
    <g:textField class="easyui-validatebox myui" name="sjzsh" value="${yxhqrdInstance?.sjzsh}"/>

</span>

<span id="divqrrq${pageId}" class="fieldcontain  ">
    <label for="qrrq">
        <g:message code="yxhqrd.qrrq.label" default="Qrrq" />

    </label>
    <input id="qrrq" name="qrrq" class="easyui-datebox" date value="${yxhqrdInstance?.qrrq?.getTime()}"/>

</span>

<span id="divhytdh${pageId}" class="fieldcontain  ">
    <label for="hytdh">
        <g:message code="yxhqrd.hytdh.label" default="Hytdh" />

    </label>
    <g:textField class="easyui-validatebox myui" name="hytdh" value="${yxhqrdInstance?.hytdh}"/>

</span>
<span id="divxghth${pageId}" class="fieldcontain  ">
    <label for="xghth">
        <g:message code="yxhqrd.xghth.label" default="Xghth" />

    </label>

    <g:textField class="easyui-validatebox myui" name="xghth" value="${yxhqrdInstance?.xghth}"/>

</span>

<span id="divxtdh${pageId}" class="fieldcontain  ">
    <label for="xtdh">
        <g:message code="yxhqrd.xtdh.label" default="Xtdh" />

    </label>
    <g:textField class="easyui-validatebox myui" name="xtdh" value="${yxhqrdInstance?.xtdh}"/>

</span>

<span id="divgh${pageId}" class="fieldcontain  ">
    <label for="gh${pageId}">
        <g:message code="yxhqrd.gh.label" default="Gh" />

    </label>
    <g:refTemplate code="refYBdTank" model="[id:'gh',name:'gh.id',value:yxhqrdInstance?.gh?.id,required:true]" ></g:refTemplate>


</span>
<span id="divkhtdh${pageId}" class="fieldcontain  ">
    <label for="khtdh">
        <g:message code="yxhqrd.khtdh.label" default="Khtdh" />

    </label>
    <g:textField class="easyui-validatebox myui" name="khtdh" value="${yxhqrdInstance?.khtdh}"/>

</span>

<span id="divtdsl${pageId}" class="fieldcontain  ">
    <label for="tdsl">
        <g:message code="yxhqrd.tdsl.label" default="Tdsl" />

    </label>
    <g:textField class="easyui-numberbox myui" name="tdsl" value="${yxhqrdInstance?.tdsl}"/>

</span>

<span id="divgj${pageId}" class="fieldcontain  ">
    <label for="gj">
        <g:message code="yxhqrd.gj.label" default="Gj" />

    </label>
    <g:field name="gj" value="${fieldValue(bean: yxhqrdInstance, field: 'gj')}" class="myui"/>

</span>
<span id="divgz${pageId}" class="fieldcontain  ">
    <label for="gz">
        <g:message code="yxhqrd.gz.label" default="Gz" />

    </label>
    <g:field name="gz" value="${fieldValue(bean: yxhqrdInstance, field: 'gz')}" class="myui"/>

</span>

<span id="divsdyy${pageId}" class="fieldcontain  ">
    <label for="sdyy">
        <g:message code="yxhqrd.sdyy.label" default="Sdyy" />

    </label>
    <g:textField class="easyui-validatebox myui" name="sdyy" value="${yxhqrdInstance?.sdyy}"/>

</span>

<span id="divsdsl${pageId}" class="fieldcontain  ">
    <label for="sdsl">
        <g:message code="yxhqrd.sdsl.label" default="Sdsl" />

    </label>
    <input name="sdsl" id="sdsl" value="${yxhqrdInstance?.sdsl}" class="easyui-numberbox myui"/>

</span>
<span id="divnote${pageId}" class="fieldcontain  ">
    <label for="note">
        <g:message code="yxhqrd.note.label" default="Note" />

    </label>
    <g:textField class="easyui-validatebox myui" name="note" value="${yxhqrdInstance?.note}"/>

</span>


<p>结算信息</p>
<hr>
<span id="divjsfy${pageId}" class="fieldcontain  ">
    <label for="jsfy">
        <g:message code="yxhqrd.jsfy.label" default="Jsfy" />

    </label>
    <g:checkBox name="jsfy" class="checkbox"  value="${yxhqrdInstance?.jsfy}" />

</span>

<span id="divccfdj${pageId}" class="fieldcontain  ">
    <label for="ccfdj">
        <g:message code="yxhqrd.ccfdj.label" default="Ccfdj" />

    </label>
    <input id="ccfdj" name="ccfdj" value="${yxhqrdInstance?.ccfdj}" class="easyui-numberbox myui"/>

</span>

<span id="divzxfdj${pageId}" class="fieldcontain  ">
    <label for="zxfdj">
        <g:message code="yxhqrd.zxfdj.label" default="Zxfdj" />

    </label>
    <input name="zxfdj" id="zxfdj" value="${yxhqrdInstance?.zxfdj}" class="easyui-numberbox myui"/>

</span>
<span id="divsqts${pageId}" class="fieldcontain  ">
    <label for="sqts">
        <g:message code="yxhqrd.sqts.label" default="Sqts" />

    </label>
    <input  id="sqts" name="sqts" value="${yxhqrdInstance?.sqts}" class="easyui-numberbox myui"/>

</span>

<span id="divccfzq${pageId}" class="fieldcontain  ">
    <label for="ccfzq">
        <g:message code="yxhqrd.ccfzq.label" default="Ccfzq" />

    </label>
    <input id="ccfzq" name="ccfzq" value="${ yxhqrdInstance?.ccfzq}" class="easyui-numberbox myui"/>

</span>

<span id="divcqksrq${pageId}" class="fieldcontain  ">
    <label for="cqksrq">
        <g:message code="yxhqrd.cqksrq.label" default="Cqksrq" />

    </label>
    <input id="cqksrq" name="cqksrq" class="easyui-datebox" date value="${yxhqrdInstance?.cqksrq?.getTime()}">

</span>
<span id="divcqdj${pageId}" class="fieldcontain  ">
    <label for="cqdj">
        <g:message code="yxhqrd.cqdj.label" default="Cqdj" />

    </label>
    <input id="cqdj" name="cqdj" value="${yxhqrdInstance?.cqdj}" class="easyui-numberbox myui"/>

</span>

<span id="divcsksr${pageId}" class="fieldcontain  ">
    <label for="csksr">
        <g:message code="yxhqrd.csksr.label" default="Csksr" />

    </label>
    <input id="csksr" name="csksr" class="easyui-datebox" date value="${yxhqrdInstance?.csksr?.getTime()}">

</span>

<span id="divcszq${pageId}" class="fieldcontain  ">
    <label for="cszq">
        <g:message code="yxhqrd.cszq.label" default="Cszq" />

    </label>
    <input id="cszq" name="cszq" value="${yxhqrdInstance?.cszq}" class="easyui-numberbox myui"/>

</span>


<p>其他</p>
<hr>
<span   class="fieldcontain  ">
    <label for="maker">
        <g:message code="yxhqrd.maker.label" default="maker" />

    </label>
    <input id="maker" value="${yxhqrdInstance?.maker?.userRealName}" class="myui" readonly=""/>

</span>
<span   class="fieldcontain  ">
    <label for="makeDate">
        <g:message code="yxhqrd.makeDate.label" default="makeDate" />

    </label>
    <input id="makeDate" name="makeDate" value="${yxhqrdInstance?.makeDate?.getTime()}"  class="myui"  date readonly="">

</span>
<span  class="fieldcontain  ">
    <label for="checker">
        <g:message code="yxhqrd.checker.label" default="checker" />

    </label>
    <input id="checker" value="${yxhqrdInstance?.checker?.userRealName}" readonly="" class="myui"/>

</span>
<span   class="fieldcontain  ">
    <label for="checkDate">
        <g:message code="yxhqrd.checkDate.label" default="checkDate" />

    </label>
    <input id="checkDate" name="checkDate" value="${yxhqrdInstance?.checkDate?.getTime()}" date readonly="" class="myui"/>

</span>
